<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN"
  "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
  <head>
    <title><%= h(yield(:title) || "Untitled") %></title>
    <%= stylesheet_link_tag 'common' %>
    <%= stylesheet_link_tag 'cpanel' %>
    <%= stylesheet_link_tag 'icons' %>
    <%= stylesheet_link_tag 'application' %>
    <%= stylesheet_link_tag 'tinyMCECustomization' %>
    <%= stylesheet_link_tag 'header' %>
    <%= javascript_include_tag ['jquery', 'jquery-ui-custom.min', 'application']  %>
    <%= stylesheet_link_tag 'jquery.ui.all' %>
    <%= include_tiny_mce_if_needed %>
    <%= yield(:head) %>
  </head>
  <body>
    <div id="header">
      <h1 id="logo">
        <%= link_to image_tag("../images/theme/logo.png") %>
      </h1>
    </div>
    <div id="cPanel">
      <%= render ("inc/cPanel") %>
    </div>
    
    <div id="container">
      <%- flash.each do |name, msg| -%>
        <%= content_tag :div, msg, :id => "flash_#{name}" %>
      <%- end -%>

      <%- if show_title? -%>
        <h1><%=h yield(:title) %></h1>
      <%- end -%>

      <%= yield %>
    </div>

    <!-- including footer -->
    <%= render ("inc/footer") %>
  </body>
</html>
